package jobs.controller;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import jobs.pattern.design.ControllerComposite;
import jobs.pattern.design.DAOComposite;
import jobs.model.OccupationalGroup;
import jobs.model.dao.OccupationalGroupDAO;

/**
 *
 * @author administrador
 */
@ManagedBean(name = "occupationalGroups")
@SessionScoped
public class OccupationalGroupController extends ControllerComposite<OccupationalGroup> {

    @EJB
    private OccupationalGroupDAO dao;

    public OccupationalGroupController() {
        super(OccupationalGroup.class);
    }

    @Override
    public DAOComposite<OccupationalGroup> getDAO() {
        return dao;
    }
}
